<template>
	<view class="store">
		<view class="header">
			<navigator delta="1" open-type="navigateBack" class="return">
				<image src="../../static/image/fanhui1@3x.png" mode="widthFix" style="width: 70rpx;"></image>
			</navigator>
		</view>
		<view class="timer-address">
			<text class="title">标准洗车-5座轿车</text>
			<view class="image">
				<text class="price">售价</text>
				<text class="number">￥25.00</text>
			</view>
			<view class="working">
				<image src="../../static/image/yingye@3x.png" mode="widthFix"></image>
				<text>营业中 8.30 - 19.00</text>
			</view>
			<view class="address">
				<view class="text">
					<text class="text1">四川省成都市高新西区剑南大道中段仁和路219-229号</text>
					<text class="text2">距离您 2.3km，驾车 8 分钟</text>
				</view>
				<view class="navButton">
					<image src="../../static/image/daohang@3x.png" mode="widthFix"></image>
				</view>
			</view>
		</view>
		<view class="line">
			<image src="https://i.loli.net/2021/04/13/DRwnK5O3UBpkSc6.png" mode="widthFix"></image>
		</view>
		<view class="details">服务详情</view>
		<view class="services">
			<text>洗车(5座轿车)</text>
			<view class="right">
				<text>1份 25.00元</text>
				<text>总价 30.00元</text>
				<text style="font-size: 28rpx;">团购价 <text style="color: #ff5300;">25.00元</text></text>
			</view>
		</view>
		<view class="imageText">
			<text>———— 图文详情 ————</text>
		</view>
		<view class="serviceIntroduction">
			<text class="title">收车验车</text>
			<view class="explain">
				客户将车交予工作人员，由工作人员驾驶至洗车区，确认服务项目并检查车辆
			</view>
			<view class="">
				<image src="https://i.loli.net/2021/04/10/QE8qlJXLRNy1U4M.png" mode="widthFix" style="width: 100%;" />
				<image src="https://i.loli.net/2021/04/10/3nPebdLEjoyO7pq.png" mode="widthFix" style="width: 100%;" />
				<image src="https://i.loli.net/2021/04/10/SKfmz92kYtTgain.png" mode="widthFix" style="width: 100%;" />
			</view>
			<text class="title">检查交车</text>
			<view class="explain">
				技师检查完毕，客户服务无异议后交车
			</view>
			<view class="">
				<image src="https://i.loli.net/2021/04/10/vktMKqSPLQwWFom.png" mode="widthFix" style="width: 100%;" />
			</view>
		</view>
		<view class="instructions">
			<text class="title">使用说明</text>
			<view class="icon">
				<view class="item">
					<image src="https://i.loli.net/2021/04/13/XJeu95WPl1xzTmD.png" mode="widthFix" />
					<text>在线下单</text>
				</view>
				<view class="item">
					<image src="https://i.loli.net/2021/04/13/XjUOEeiIw9ugm2q.png" mode="widthFix" />
					<text>到店使用</text>
				</view>
				<view class="item">
					<image src="https://i.loli.net/2021/04/13/zmSZHo3if7naNw9.png" mode="widthFix"></image>
					<text>扫码服务</text>
				</view>
			</view>
			<view class="tips">
				<image src="../../static/image/dengpao@3x.png" mode="widthFix" style="width: 40rpx;"></image>
				<text>温馨提示:到店出示订单中的二维码，代金券及订单号等不能作为消费凭证。</text>
			</view>
		</view>
		<view class="validity">
			<view class="item">
				<text class="title">有效期</text>
				<text class="text"> ·购买后90天内有效</text>
			</view>
			<view class="item">
				<text class="title">除外日期</text>
				<text class="text"> ·每周日不可用·春节不可用</text>
			</view>
			<view class="item">
				<text class="title">规则提醒</text>
				<text class="text"> ·不再与其他优惠同享</text>
			</view>
			<view class="item">
				<text class="title">预约信息</text>
				<text class="text"> ·无需预约，如遇消费高峰时段您可能需要排队</text>
			</view>
			<view class="item">
				<text class="title">温馨提示</text>
				<text class="text"> ·如需要团购券发票,请您在消费时间向商户咨询</text>
			</view>
		</view>
		<view class="assess">
			<text class="title">门店评价(888)</text>
			<view class="item">
				<view class="picture">
					<image src="https://i.loli.net/2021/04/13/P3whBQf9jyA8TEk.png" mode="widthFix"></image>
				</view>
				<view class="information">
					<view class="phone">183134**431</view>
					<view class="star">
						<image src="../../static/image/manxing@3x.png" mode="widthFix"></image>
						<image src="../../static/image/manxing@3x.png" mode="widthFix"></image>
						<image src="../../static/image/manxing@3x.png" mode="widthFix"></image>
						<image src="../../static/image/manxing@3x.png" mode="widthFix"></image>
					</view>
					<view class="say">认真负责，满足客户需求，工作人员也很热情，会一直来减肥减肥龙卷风累计欸据二零</view>
					<view class="choose">标准洗车·五座轿车</view>
				</view>
			</view>
			<view class="item">
				<view class="picture">
					<image src="https://i.loli.net/2021/04/13/P3whBQf9jyA8TEk.png" mode="widthFix"></image>
				</view>
				<view class="information">
					<view class="phone">183134**431</view>
					<view class="star">
						<image src="../../static/image/manxing@3x.png" mode="widthFix"></image>
						<image src="../../static/image/manxing@3x.png" mode="widthFix"></image>
						<image src="../../static/image/manxing@3x.png" mode="widthFix"></image>
						<image src="../../static/image/manxing@3x.png" mode="widthFix"></image>
					</view>
					<view class="say">认真负责，满足客户需求，工作人员也很热情，会一直来减肥减肥龙卷风累计欸据二零</view>
					<view class="choose">标准洗车·五座轿车</view>
				</view>
			</view>
			<view class="allAssess">
				查看全部评价(369)
			</view>
		</view>
		<view class="loading">
			正在加载
		</view>
		<view class="balance">
			<view class="title1">标准洗车-5座轿车</view>
			<text class="title2">武侯区蓉城汽车美容</text>
			<view class="title3">四川省成都市高新区剑南大道中段仁和路219-229号</view>
			<view class="door">
				<text>上门取车</text>
				<switch @change="switch1Change" />
			</view>
			<view class="bottom">
				<view class="price">
					<text>￥ 25</text>
					<text class="washbase">标准洗车-5座轿车</text>
				</view>
				<navigator url="/pages/home/order" class="button">
					结算
				</navigator>
			</view>

		</view>
		<view class="modalBox">
			<wyb-modal ref="modal" custom="true" title="上门取车">
				<view class="">
					1、2km以内收取5元服务费
				</view>
				<view class="">
					2、超过2km以每公里/1元收取
				</view>
			</wyb-modal>
		</view>
	</view>
</template>

<script>
	import HomeStore from "../../components/homeStore/HomeStore.vue"
	export default {
		components: {
			HomeStore
		},
		data() {
			return {

			};
		},
		methods: {
			switch1Change: function(e) {
				if(e.target.value) {
					this.$refs.modal.showModal()
				}
			}
		}
	}
</script>

<style lang="scss" scoped>
	.store {
		background-color: #f9f9f9;
		position: relative;

		.header {
			height: 488rpx;
			background: url('https://i.loli.net/2021/04/10/oquX7NpH4BxcOwe.png');
			background-size: 100vw;

			.return {
				padding: 60rpx 24rpx;
			}
		}

		.timer-address {
			// width: 100vw;
			background-color: #FFFFFF;
			border-radius: 24rpx;
			margin: 24rpx;
			padding: 24rpx;
			position: absolute;
			top: 400rpx;

			.title {
				font-size: 32rpx;
				color: #333333;
				font-weight: bold;
			}

			.image {
				margin: 24rpx 0;

				image {
					width: 30rpx;
					margin: 0 8rpx 0 0;
				}

				.price {
					font-size: 30rpx;
				}

				.number {
					font-size: 30rpx;
					color: #f26200;
					margin: 0 20rpx 0 30rpx;
				}
			}

			.working {
				font-size: 20rpx;
				color: #999999;
				display: flex;
				align-items: center;

				image {
					width: 30rpx;
					margin-right: 10rpx;
				}
			}

			.address {
				padding: 48rpx 24rpx;
				border-radius: 20rpx;
				background-color: #f9f9f9;
				display: flex;
				justify-content: space-between;

				.text {
					display: flex;
					flex-direction: column;
					justify-content: space-between;

					.text1 {
						font-size: 24rpx;
						color: #333333;
						margin-bottom: 20rpx;
					}

					.text2 {
						font-size: 22rpx;
						color: #999999;
					}
				}

				.navButton {

					image {
						width: 60rpx;
						margin: 0 16rpx 0 60rpx;
					}
				}
			}
		}

		.line {
			margin-top: 360rpx;
			text-align: center;
		}

		.details {
			color: #ff8219;
			font-size: 32rpx;
			padding: 20rpx 40rpx;
			background-color: #FFFFFF;
			border-radius: 20rpx;
			font-weight: bold;
		}

		.services {
			margin: 24rpx;
			display: flex;
			justify-content: space-between;
			font-size: 28rpx;

			.right {
				display: flex;
				flex-direction: column;
				font-size: 24rpx;

				text {
					padding: 10rpx;
				}
			}
		}

		.imageText {
			font-size: 24rpx;
			text-align: center;
			color: #ebdeec;
		}

		.serviceIntroduction {
			margin: 24rpx;
			background-color: #FFFFFF;
			border-radius: 20rpx;

			.title {
				font-size: 28rpx;
				font-weight: bold;
				color: #797979;
				padding: 24rpx;
			}

			.explain {
				font-size: 24rpx;
				color: #afafaf;
				padding: 24rpx;
			}
		}

		.instructions {
			padding: 24rpx;
			background-color: #FFFFFF;
			margin: 24rpx;
			border-radius: 20rpx;

			.title {
				font-size: 36rpx;
				font-weight: bold;
				color: #666666;
			}

			.icon {
				margin: 40rpx 0;
				display: flex;
				justify-content: space-between;

				.item {
					display: flex;
					flex-direction: column;
					align-items: center;
					font-size: 30rpx;

					image {
						width: 80rpx;
					}

				}
			}

			.tips {
				padding: 18rpx;
				display: flex;
				justify-content: space-between;
				font-size: 24rpx;
				align-items: center;
				border-radius: 16rpx;
				background-color: #d9f1ff;
				color: #0087d6;
			}
		}

		.validity {
			padding: 24rpx;

			.item {
				display: flex;
				flex-direction: column;

				.title {
					font-size: 24rpx;
					margin: 20rpx 0;
					color: #999999;
				}

				.text {
					font-size: 26rpx;
					color: #3e3e3e;
				}
			}
		}

		.assess {
			background-color: #FFFFFF;
			border-radius: 20rpx;
			padding: 24rpx;
			margin: 24rpx;

			.title {
				font-size: 36rpx;
				font-weight: bold;
				color: #666666;
			}

			.item {
				display: flex;
				margin: 30rpx 0;

				.picture {
					image {
						width: 80rpx;
					}
				}

				.information {
					.phone {
						font-size: 28rpx;
						font-weight: bold;
					}

					.star {
						image {
							width: 20rpx;
						}
					}

					.say {
						font-size: 24rpx;
					}

					.choose {
						font-size: 20rpx;
						color: #cccccc;
					}
				}
			}

			.allAssess {
				border-top: 1px solid #F8F8F8;
				font-size: 22rpx;
				color: #999999;
				text-align: center;
				padding: 20rpx 0;
			}
		}

		.loading {
			height: 400rpx;
		}

		.balance {
			padding: 24rpx 0 0 24rpx;
			background-color: #FFFFFF;
			border-radius: 20rpx 20rpx 0 0;
			position: fixed;
			bottom: 0;
			width: 100%;
			height: 320rpx;
			box-sizing: border-box;
			.title1 {
				font-size: 32rpx;
				font-weight: bold;
				margin: 10rpx 0;
			}
			.title2 {
				font-size: 28rpx;
				color: #999999;
			}
			.title3 {
				font-size: 26rpx;
				color: #999999;
			}
			.door {
				switch{
					scale: 0.6;
				}
			}
			
			.bottom {
				display: flex;
				justify-content: space-between;
				.price {
					font-size: 48rpx;
					color: #ff5300;
					font-weight: bold;
					display: flex;
					flex-direction: column;
					.washbase {
						font-size: 22rpx;
						color: #333333;
					}
				}

				.button {
					background-color: #ff7010;
					color: white;
					width: 236rpx;
					height: 100rpx;
					font-size: 32rpx;
					line-height: 100rpx;
					border-radius: 0 20rpx 0 0;
					text-align: center;
				}
			}


		}

		.modalBox {
				font-size: 24rpx;
		}
	}
</style>
